#{extends 'main.html' /} #{set title:'Register' /}

<h1>Create new account</h1>
<form action="@{Usercontroller.Register()}" method="GET"
	oninput="myCpass.setCustomValidity(myCpass.value != myPass.value ? 'Passwords do not match.' : '')">
	<p>
		<label for="usermail">E-mail address:</label><br /> <input
			id="usermail" type=email required="true" name=myMail>
	<p>

		<label for="username">Name:</label><br /> <input id="username"
			type=text required="true" name=myName>
	<p>

		<label for="password1">Password:</label><br /> <input id="password1"
			type=password required="true" name=myPass>
	<p>
		<label for="password2">Confirm password:</label><br /> <input
			id="password2" type=password required="true" name=mycPass><br />
	<p>

		contribution preference :<select name="contribution_preference">
			<option>choose...</option>
			<option>True</option>
			<option>False</option>
		</select><br /> <br /> subscribe preference : <select
			name="subscribe_preference">
			<option>choose...</option>
			<option>True</option>
			<option>False</option>
		</select><br /> <br /> <input type="submit" value="Create account" />
</form>



<a href="@{Usercontroller.Login(myMail,myPass)}">To login</a>